import Mock from 'mockjs'


const powerCom = Mock.mock({
        power:[
            {
               authName:"订单管理",
               pid:1,
               path:"goods" ,
               id:101,
               level:"0"
            },
            {
               authName:"权限管理",
               pid:2,
               path:"orders" ,
               id:101,
               level:"1"
            },
            {
               authName:"商品列表",
               pid:3,
               path:"rights" ,
               id:101,
               level:"2"
            },
            {
               authName:"添加商品",
               pid:4,
               path:"goods" ,
               id:101,
               level:"2"
            },
            {
               authName:"订单列表",
               pid:5,
               path:"goods" ,
               id:101,
               level:"1"
            },
            {
               authName:"添加订单",
               pid:6,
               path:"orders" ,
               id:101,
               level:"1"
            },
            {
               authName:"用户列表",
               pid:7,
               path:"users" ,
               id:101,
               level:"1"
            },
            {
               authName:"角色列表",
               pid:8,
               path:"roles" ,
               id:101,
               level:"0"
            },
            {
               authName:"权限列表",
               pid:9,
               path:"rights" ,
               id:101,
               level:"0"
            },
            {
               authName:"商品添加",
               pid:10,
               path:"rights" ,
               id:101,
               level:"2"
            },
            {
               authName:"商品修改",
               pid:11,
               path:"goods" ,
               id:101,
               level:"1"
            },
            {
               authName:"商品删除",
               pid:12,
               path:"orders" ,
               id:101,
               level:"1"
            },
        ]
})

// 创建接口
Mock.mock("/powerDate","get",()=>{
    return powerCom
})